import RequestHttp from "../../utils/request";
import { LoginResult } from "../types/user";

// 获取验证码
export const sendCodeAPI = (params:{mobile:string})=>RequestHttp.get<null>(`/v1_0/sms/codes/${params.mobile}`,params)

// 登录
export const loginAPI = (data:object)=>RequestHttp.post<LoginResult>('/v1_0/authorizations',data)